#!/bin/sh
cd '/home/huofukude/userdate/dial'
count=1
#maxcount=5
until test -n "`ifconfig | grep ppp`" #|| [ "$count" -eq "$maxcount" ]
	do
		date		
		echo "第$count次登录失败"
		sleep 3
		count=`expr $count + 1`
		clear
		./dialnetkeeper
		pppd call dsl-provider #> /dev/null
		
		
	done
sleep 1
route add default dev ppp0
date
echo "第$count次网络连接成功"
